//
//  Custom3Button.m
//  225视听百科
//
//  Created by 张元阳(10) on 14-12-30.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Custom3Button.h"

@implementation Custom3Button

- (void)dealloc
{
    [_imageV1 release];
    [_imageV2 release];
    [_label1 release];
    [_label2 release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.imageV1 = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, frame.size.width / 10, frame.size.width / 10)];
        [self addSubview:_imageV1];
        [_imageV1 release];
        
        self.imageV2 = [[UIImageView alloc] initWithFrame:CGRectMake(frame.size.width / 10 + 20, 10, frame.size.width / 30, frame.size.width / 30)];
        _imageV2.image = [UIImage imageNamed:@"5.png"];
        [self addSubview:_imageV2];
        [_imageV2 release];
        
        self.label1 = [[UILabel alloc] initWithFrame:CGRectMake(30 + frame.size.width / 10 + frame.size.width / 30, 10, frame.size.width, frame.size.width / 30)];
        [_label1 setFont:[UIFont systemFontOfSize:15]];
        [self addSubview:_label1];
        [_label1 release];
        
        self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(frame.size.width / 10 + 20, 20 + frame.size.width / 30, frame.size.width, frame.size.width / 30)];
        [_label2 setFont:[UIFont systemFontOfSize:13]];
        [self addSubview:_label2];
        [_label2 release];
        
    }
    return self;
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
